package com.example.entity;

import java.io.Serializable;
import java.util.List;

public class Comment implements Serializable {
    private static final long serialVersionUID = 1L;

    /** ID */
    private Integer id;
    private Integer userId;
    private Integer courseId;
    private String time;
    private String content;
    private Integer parentId;

    private String userName;
    private String userAvatar;
    private String departmentName;


    private List<Comment> children;


    public Comment() {
    }

    public Comment(Integer id, Integer userId, Integer courseId, String time, String content, Integer parentId, String userName, String userAvatar, String departmentName, List<Comment> children) {
        this.id = id;
        this.userId = userId;
        this.courseId = courseId;
        this.time = time;
        this.content = content;
        this.parentId = parentId;
        this.userName = userName;
        this.userAvatar = userAvatar;
        this.departmentName = departmentName;
        this.children = children;
    }

    /**
     * 获取
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     * @return userId
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * 设置
     * @param userId
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * 获取
     * @return courseId
     */
    public Integer getCourseId() {
        return courseId;
    }

    /**
     * 设置
     * @param courseId
     */
    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }

    /**
     * 获取
     * @return time
     */
    public String getTime() {
        return time;
    }

    /**
     * 设置
     * @param time
     */
    public void setTime(String time) {
        this.time = time;
    }

    /**
     * 获取
     * @return content
     */
    public String getContent() {
        return content;
    }

    /**
     * 设置
     * @param content
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * 获取
     * @return parentId
     */
    public Integer getParentId() {
        return parentId;
    }

    /**
     * 设置
     * @param parentId
     */
    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    /**
     * 获取
     * @return userName
     */
    public String getUserName() {
        return userName;
    }

    /**
     * 设置
     * @param userName
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * 获取
     * @return userAvatar
     */
    public String getUserAvatar() {
        return userAvatar;
    }

    /**
     * 设置
     * @param userAvatar
     */
    public void setUserAvatar(String userAvatar) {
        this.userAvatar = userAvatar;
    }

    /**
     * 获取
     * @return departmentName
     */
    public String getDepartmentName() {
        return departmentName;
    }

    /**
     * 设置
     * @param departmentName
     */
    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    /**
     * 获取
     * @return children
     */
    public List<Comment> getChildren() {
        return children;
    }

    /**
     * 设置
     * @param children
     */
    public void setChildren(List<Comment> children) {
        this.children = children;
    }

    public String toString() {
        return "Comment{serialVersionUID = " + serialVersionUID + ", id = " + id + ", userId = " + userId + ", courseId = " + courseId + ", time = " + time + ", content = " + content + ", parentId = " + parentId + ", userName = " + userName + ", userAvatar = " + userAvatar + ", departmentName = " + departmentName + ", children = " + children + "}";
    }
}